package com.avic.modules.statistics.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhangzikang 设备看板月状态统计表
 * @date 2022-08-14
 */
@Data
@TableName("monthly_status_record")
public class MonthlyStatusRecord implements Serializable {

    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 设备状态 */
    private Integer status;

    /** 创建日 */
    private String creationDate;

    /** 设备id */
    private String equipId;

    public void copy(MonthlyStatusRecord source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
